//
//  SettingLogoutCell.swift
//  EyeVisionForPatients
//
//  Created by PMC on 2020/2/29.
//  Copyright © 2020 tao Tao. All rights reserved.
//

import UIKit

class SettingLogoutCell: UITableViewCell {
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        makeUI()
    }

    required init?(coder: NSCoder) {
        super.init(coder: coder)
        makeUI()
    }
    
    private func makeUI() {
        backgroundColor = .clear
        contentView.backgroundColor = .clear
    }
    
    @IBOutlet weak var logoutBtn: UIButton! {
        didSet {
            logoutBtn.layer.cornerRadius = logoutBtn.height * 0.5
            logoutBtn.clipsToBounds = true
            logoutBtn.setTitle("退出账号", for: .normal)
            logoutBtn.setTitleColor(.white, for: .normal)
            logoutBtn.titleLabel?.font = .medium(16)
            logoutBtn.setBackgroundImage(UIImage(color: .mainColor), for: .normal)
            logoutBtn.setBackgroundImage(UIImage(color: .mainGray), for: .highlighted)
        }
    }
    
}
